package user;

import operation.*;

import java.util.Scanner;

public class NormalUser extends User{
    Scanner scan = new Scanner(System.in);

    public NormalUser(String name) {
        super(name);
        this.ioPerations = new IOPeration[] {
                new Leave(),
                new ShowBook(),
                new FindBook(),
                new BorrowBook(),
                new ReturnBook(),
                new SupportBook(),
                new Rankings()
        };
    }
    public int DoUser(){
        System.out.println("欢迎 " + name + " 来到梦幻图书店");
        System.out.println("-------用户菜单-------");
        System.out.println("1.展示图书   2.查找图书");
        System.out.println("3.借阅图书   4.归还图书");
        System.out.println("5.支持图书   6.热度排行");
        System.out.println("      0.离开书店      ");
        System.out.println("--------------------");
        System.out.println("请输入操作:");
        int n = scan.nextInt();
        return n;
    }
}
